﻿<%@ Page Language="C#" MasterPageFile="~/Pages/MainPage.Master" AutoEventWireup="true"
    CodeBehind="ContractorManagement.aspx.cs" Inherits="ContractManagermentSystem.Pages.ContractorManagement"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <h1 style="font-family: Vivaldi">
        Contractor List</h1>
    <asp:GridView ID="ContractorGridView" runat="server" BackColor="White" BorderColor="#3366CC"
        BorderStyle="Solid" BorderWidth="1px" CellPadding="4" AutoGenerateColumns="False"
        Width="100%" PageSize="5">
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <Columns>
            <asp:BoundField DataField="ContractorId" HeaderText="ContractorId" Visible="False" />
            <asp:BoundField DataField="Username" HeaderText="Username" />
            <asp:BoundField DataField="Password" HeaderText="Password" />
            <asp:BoundField DataField="FullName" HeaderText="Full Name" />
            <asp:BoundField DataField="PhoneNumber1" HeaderText="PhoneNumber1" />
            <asp:BoundField DataField="PhoneNumber2" HeaderText="PhoneNumber2" />
            <asp:BoundField DataField="Gender" HeaderText="Gender" />
            <asp:BoundField DataField="IsActive" HeaderText="IsActive" />
            <asp:BoundField DataField="Branch" HeaderText="Branch" />
            <asp:BoundField DataField="SortCode" HeaderText="Sort Code" />
            <asp:TemplateField HeaderText="Edit">
                <ItemTemplate>
                    <asp:HyperLink ID="UpdateHyperLink" runat="server" NavigateUrl='<%# Eval("ContractorId", "~/Pages/UpdateContractor.aspx?Id={0}") %>'
                        ImageUrl="../Presentation/Images/edit.jpg"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
    </asp:GridView>
</asp:Content>
